package com.jason.ladder.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Game implements Serializable{
	

	/**
	 * 
	 */
	private static final long serialVersionUID = -3140743721030655779L;
	Long gameId;
	Date playDate;
	Long you;
	Long contestant;
	Long yourScore;
	Long contestantScore;
	

	public Game() {
		super();
	}
	public Game(Date playDate, Long you, Long contestant,
			Long yourScore, Long contestantScore) {
		this.playDate = playDate;
		this.you = you;
		this.contestant = contestant;
		this.yourScore = yourScore;
		this.contestantScore = contestantScore;
	}
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long getGameId() {
		return gameId;
	}


	public void setGameId(Long gameId) {
		this.gameId = gameId;
	}

	@Column(name="playDate")
	public Date getPlayDate() {
		return playDate;
	}


	public void setPlayDate(Date playDate) {
		this.playDate = playDate;
	}

	@Column(name="contestantA")
	public Long getYou() {
		return you;
	}


	public void setYou(Long you) {
		this.you = you;
	}

	@Column(name="contestantB")
	public Long getContestant() {
		return contestant;
	}


	public void setContestant(Long contestant) {
		this.contestant = contestant;
	}

	@Column(name="contestantAScore")
	public Long getYourScore() {
		return yourScore;
	}


	public void setYourScore(Long yourScore) {
		this.yourScore = yourScore;
	}

	@Column(name="contestantBScore")
	public Long getContestantScore() {
		return contestantScore;
	}


	public void setContestantScore(Long contestantScore) {
		this.contestantScore = contestantScore;
	}

}
